<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <base href="./" />
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <link rel="stylesheet" type="text/css" href="./css/main.css" />
</head>
<body>
<div class="container">
  <header>
    <div onclick="history.back()" class="back"></div>
    项目简介
  </header>
  <h1 class="title">
    ${list[0].sportingName}
  </h1>

  <div class="tab-body" style="min-height: 40vh; line-height: 1.7; padding: .6rem;">
    <p>${list[0].sportingBrief}</p>
  <h1 class="title-1">
    获奖名单
  </h1>
  <div class="tab-body" style="min-height: auto;">
    <div>
      <table class="table table-1">
        <thead>
        <tr>
          <th width="25%">日期</th>
          <th width="25%">奖牌</th>
          <th>获奖者</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="item">
        <tr>
          <td>${item.awardDate}</td>
          <td>
            <c:if test="${item.awardRanking==1}">金牌</c:if>
            <c:if test="${item.awardRanking==2}">银牌</c:if>
            <c:if test="${item.awardRanking==3}">铜牌</c:if>
          </td>
          <td><a href="athletes.let?athletesName=${item.athletesName}">${item.athletesName}</a></td>
        </tr>
        </c:forEach>
        </tbody>
      </table>
    </div>
  </div>
  </div>
</div>
</body>
</html>

